package test.advancedTest;

import java.util.Properties;
import java.util.Enumeration;

/**
 * 获取操作系统属性
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright:  Copyright (c) 2012</p>
 * <p>Company:  </p>
 * 
 * @author lijwg
 * @date 2012-5-10
 * @version 1.0
 */
public class SystemPropertyGetter {
	public static void main(String args[]) {
		Properties p = System.getProperties();//
		Enumeration e = p.propertyNames();
		for (; e.hasMoreElements();) {
			String propertyname = (String) e.nextElement();
			String value = p.getProperty(propertyname);
			System.out.println(propertyname + "=" + value);
		}
	}
}